/*
 * SonarQube
 * Copyright (C) 2009-2022 SonarSource SA
 * mailto:info AT sonarsource DOT com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
.documentation-page-header {
  margin: 10px 20px;
}

.documentation-footer div,
.documentation-footer .page-footer-menu {
  max-width: 740px;
}

.documentation-content {
  padding: calc(4 * var(--gridSize)) calc(8 * var(--gridSize));
}

.documentation-content.markdown {
  position: relative;
  font-size: 16px;
  line-height: 1.7;
}

.documentation-content.markdown .documentation-title {
  font-size: 24px;
  padding-top: var(--gridSize);
  margin-bottom: 2em;
}

.documentation-content.markdown h2 {
  font-size: 18px;
  font-weight: 800;
  margin-top: 3em;
}

.documentation-content.markdown h3 {
  font-size: 16px;
  margin-bottom: 0.8em;
}

.documentation-content.markdown pre {
  border: 1px solid #e6e6e6;
  border-radius: 3px;
  background-color: rgba(0, 0, 0, 0.06);
}

.documentation-content.markdown .alert,
.documentation-content.markdown p,
.documentation-content.markdown pre,
.documentation-content.markdown table {
  margin: 0.8em 0 2em;
}

.documentation-content.markdown ul {
  margin: 0 0 2em;
}

.documentation-content.markdown ul > ul {
  margin: 0;
}

.documentation-content.markdown p + ul,
.documentation-content.markdown p + ol,
.documentation-content.markdown p + pre {
  margin: -1em 0 2em;
}

.documentation-content.markdown li > p,
.documentation-content.markdown li > p + pre {
  margin: 0;
}

.documentation-content.markdown li > p + ul,
.documentation-content.markdown li > p + ol {
  margin: 0;
}

.documentation-content.markdown img[src$='.svg'] {
  vertical-align: text-bottom;
}

.documentation-content.markdown .alert {
  display: block;
  padding: var(--gridSize) calc(2 * var(--gridSize));
}

.documentation-content.markdown .alert .custom-block-body {
  padding-left: 24px;
  background-position: left 6px;
  background-repeat: no-repeat;
}

.documentation-content.markdown .alert-success .custom-block-body {
  background-image: url(/images/check.svg);
}

.documentation-content.markdown .alert-info .custom-block-body {
  background-image: url(/images/info.svg);
}

.documentation-content.markdown .alert-warning .custom-block-body {
  background-image: url(/images/exclamation.svg);
}

.documentation-content.markdown .alert-error .custom-block-body,
.documentation-content.markdown .alert-danger .custom-block-body {
  background-image: url(/images/cross.svg);
}

.documentation-content.markdown .collapse-container {
  border: 1px solid var(--barBorderColor);
  border-radius: 2px;
  background-color: var(--barBackgroundColor);
  padding: 8px;
  margin: 0.8em 0 2em;
}

.documentation-content.markdown .collapse-container > a:first-child {
  display: block;
}

.documentation-content.markdown .collapse-container > a:first-child:focus {
  color: var(--darkBlue);
}

.documentation-content.markdown .collapse-container *:last-child {
  margin-bottom: 0;
}

.markdown.has-toc {
  display: flex;
}

.markdown.has-toc .markdown-content {
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-x: auto;
}

.markdown-toc {
  flex: 0 0 240px;
  margin-right: -40px;
}

.markdown-toc-content {
  margin-left: calc(4 * var(--gridSize));
  padding: 0 var(--gridSize);
  font-size: var(--baseFontSize);
  background: white;
  position: sticky;
  top: calc(20px + var(--globalNavHeight));
}

.markdown-toc-content h4 {
  margin: 0 var(--gridSize) var(--gridSize) var(--gridSize);
  font-size: var(--mediumFontSize);
}

.markdown-toc-content a {
  display: block;
  color: var(--sonarcloudBlack900);
  padding: calc(var(--gridSize) / 2) var(--gridSize);
  border: 1px solid white;
  line-height: 1.2;
  transition: none;
}

.markdown-toc a:hover {
  border-color: var(--blue);
}

.markdown-toc a.active {
  font-weight: bold;
}
